<?php
/*
 * 汽车
 * @author     Mark <zhaody901@126.com>
 * @copyright  Copyright (c) 2013 lemon team
 * @version    $Id: 392dc38b2e0981c7c52fefa8982642c87cffc5c3 $
 * @time       13-12-26 下午4:04
 */
defined('IN_IXDCW') or exit('Access Denied');
header("content-type: application/x-javascript"); //设置头，否则chrome会失败
switch ($action) {
	case 'rankTree':
		if (!isset($pid)) {
			$pid = 0;
		} else {
			$pid = intval($pid);
		}
		echo json_encode(AutoCategory::easyuiTree($pid));
		break;
}